<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="root"></div>
    <div id="app"></div>
</body>
<script src="./data.js"></script>
<script>
    const root = document.querySelector("#root");// 获取到id为root的元素
    const app = document.querySelector("#app");// 获取到id为app的元素
	// root.innerText = "root123";
	// app.innerText = "app123";

	// root.innerText = "<h3>root123</h3>";
	// app.innerText = "<a>app123</a>";

	root.innerHTML = "<h3>root123</h3>";
	app.innerHTML = "<a href='https://www.baidu.com'>app123</a>";
</script>
</html>